<?php
/* @var $this SaleController */
/* @var $model Sale */
/* @var $form CActiveForm */
?>

<div class="search">

<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
)); ?>

	<label for="Sale_party_id">用户识别码</label>
	<?php echo $form->textField($model,'party_id',array('class'=>'input')); ?>

	<?php echo $form->label($model,'order_number'); ?>
	<?php echo $form->textField($model,'order_number',array('size'=>20,'maxlength'=>255,'class'=>'input')); ?>

	<?php echo $form->label($model,'product_name'); ?>
	<?php echo $form->textField($model,'product_name',array('size'=>20,'maxlength'=>50,'class'=>'input')); ?>

	<?php echo $form->label($model,'bar'); ?>
	<?php echo $form->textField($model,'bar',array('size'=>20,'maxlength'=>255,'class'=>'input')); ?>

	<?php echo $form->label($model,'add_time'); ?>	
			 <?php  
                        $this->widget('zii.widgets.jui.CJuiDatePicker', array(  
                            'model'=>$model,  
                            'attribute'=>'add_time', 
                            'language'=>'zh_cn',  
                            'options' => array(  
                                'dateFormat'=>'yy-mm-dd', //database save format  
                                //'altFormat'=>'mm-dd-yy' //display format  
                                //'showAnim'=>'fold',  
                                //'yearRange'=>'-3:+3'   
                            ),  
                            'htmlOptions'=>array(  
                                'readonly'=>'readonly',  
                                'style'=>'width:150px;',  
                            )  
                        ));?>  
			<?php echo $form->error($model,'add_time'); ?>

	<?php echo CHtml::submitButton('查 询',array('class'=>'but')); ?>

<?php $this->endWidget(); ?>

</div><!-- search-form  -->